/*********************************************************/
/*                                                       */
/* Warleague                                             */
/*                                                       */
/* main.cpp                                              */
/*                                                       */
/*********************************************************/

/*********************************************************/
/* includes                                              */
/*********************************************************/
#include "engine.h"
#include "introstate.h"

/*********************************************************/
/* main function                                         */
/*********************************************************/
int main(int argc, char *argv[])
{
    CGameEngine game;

    /* initialize the engine */
    game.Init("Warleague RTS!");

    /* load the intro */
    game.ChangeState(CIntroState::Instance());

    /* main loop*/
    while(game.Running())
    {
        game.HandleEvents();
        game.Update();
        game.Draw();
    }

    /* cleanup the engine */
    game.Cleanup();

    return 0;
} /* end main function*/
